﻿import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
//import QtWebKit 3.0
//import QtWebKit.experimental 1.0


Item{
    id:remarks
    anchors.top: parent.top
    anchors.left: parent.left
    anchors.right: parent.right
    anchors.topMargin: 7
    anchors.leftMargin: 12
    anchors.rightMargin: 12
    width:1000
    height: 610
    MouseArea
    {
        anchors.fill: parent
        onWheel:{}
    }
    Rectangle
    {
        anchors.fill: parent
//        color:app.getSystemThemeColor()
         color:"#282828"
          opacity: 0.9
//        color:Qt.rgba(40,40,40,80)
//        color: "#1F1E1E"
        APPCloseMenu{
            anchors.top: parent.top
            anchors.topMargin: 16
            width: 20
            height: 20
            anchors.right: parent.right
            anchors.rightMargin: 16
            onClose:{
                 protectionPopUp.m_check = false
                remarksItem.visible = false

            }
        }
        Item
        {
            id:test
            width: parent.width
            height: title.height +separator.height +20
        Text{
            id: title
            width: parent.width
            height: 30
            color: "#FFFFFF"
            font.pixelSize: 26
            anchors.top: parent.top
            anchors.topMargin: 20
            //horizontalAlignment : Text.AlignHCenter
            anchors.left: parent.left
            anchors.leftMargin:8
            font.family: "黑体"
        }

        Rectangle{
            id: separator
            width: parent.width
            height: 1
            color: "#FFF"
            anchors.top: title.bottom
        }
        }

        ScrollView {
            id: tabComponent
            width: parent.width  ;
            height: parent.height - title.height -separator.height -32
            anchors.top: test.bottom
            anchors.topMargin: 10
            contentItem: webEngineView
            verticalScrollBarPolicy:Qt.ScrollBarAlwaysOff
            Text {
                wrapMode:Text.WrapAnywhere
                width: parent.width -18
                anchors.left: parent.left
                anchors.leftMargin: 10
                id:webEngineView
                 lineHeight: 1.8
                 font.family: "黑体"
                color: "white"
                font.pixelSize: 26
            }
        }

    }


    function upData(id, name)
    {
        title.text = ""
        title.text = name
        webEngineView.text = ""
        webEngineView.text =app.slotGetNPATextInfo(id)

   }
}
